package com.hyperfix.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hyperfix.models.common.R;
import com.hyperfix.models.user.dtos.UserDTO;
import com.hyperfix.models.user.vos.LoginVO;
import com.hyperfix.models.user.pojos.User;
import com.hyperfix.models.user.vos.PasswordFindVO;
import com.hyperfix.models.user.vos.PasswordUpdateVO;

/**
 * @author JiangChunYu
 * 2024/4/5
 */
public interface UserService extends IService<User> {
    R<UserDTO> login(LoginVO loginVO);

    R<String> disable(String username);

    R<String> changePassword(PasswordUpdateVO passwordUpdateVO, String token);

    boolean clearUserContext(String token, String username);

    R<String> findPassword(PasswordFindVO passwordFindVO);
}
